package edu.zut.oop_test.test1;

import java.time.LocalDateTime;

public class Test {

    public static void main(String[] args) {

        Goods goods = new Goods();
        goods.setGoods("20215678", "联想Y7000P", 6999.9, "联想游戏本", 20, LocalDateTime.now());
        Goods goods2 = new Goods();
        goods2.setGoods("20215679", "联想Y9000P", 8999.9, "联想游戏本", 20, LocalDateTime.now());
        Goods goods3 = new Goods();
        goods3.setGoods("20215680", "华为笔记本", 7999.9, "华为商务本", 20, LocalDateTime.now());
        //模拟调用GoodsOperation对象，添加数组到货架
        GoodsOperation operation = new GoodsOperation();
        operation.addGoods(goods);
        operation.addGoods(goods2);
        operation.addGoods(goods3);
        //根据商品名称检索商品信息
        Goods goods1 = operation.findByGoodsName("华为笔记本");
        goods1.say();


    }

}
